NAME
	GU_CountNodes -- Count number of nodes in a list.

   SYNOPSIS
	numnodes = GU_CountNodes(list)
	D0                       A0

	ULONG GU_CountNodes(struct List *);

   FUNCTION
	This function will count the number of nodes attached to a list.

   INPUTS
	list - a pointer to the list to get the number of nodes in

   RESULT
	numnodes - Number of nodes that was in the list for the moment.
	           Note that count starts from one and not from zero!

   NOTES
	Use Forbid() and Permit() around a call to this function if you
	are using it on a list that can change at any time (e.g. a list
	that wasn't created by yourself). This function may not be accurate
	when you are using it on a system list.

   SEE ALSO
	GU_AddTail(), GU_ClearList(), GU_DetachList(), GU_AttachList()
	GU_FindNode(), GU_NodeUp(), GU_NodeDown(), GU_NewList(), GU_SortList()


[Main] [Previous] [Next]

Converted on 19 Jul 1996 with RexxDoesAmigaGuide2HTML by Michael Ranner.